import { callService } from "./api";
import type { UserProfile } from "../types/entities";

export function updateProfile(payload: { nickname?: string; avatarUrl?: string }) {
  return callService<{ user: UserProfile }>("profileUpdate", payload);
}
